#include <AOR_Probe.h>
◆ AOR_Probe()
15 if (a_filename ==
"") a_filename =
"NWordOutputPrb.txt";
18 g_msg->
Warn(
WARN_FILE,
"Population_Manager::AOR_Probe: ""Unable to open NWord probe file",
"");
21 m_ProbeFile <<
"Year" <<
'\t' <<
"Day" <<
'\t' <<
"Total_no" <<
'\t' <<
"Cells50" <<
'\t' <<
"Occupied50" <<
'\t' <<
"Cells100" <<
'\t' <<
"Occupied100" <<
'\t' <<
"Cells200" <<
'\t' <<
"Occupied200" <<
'\t' <<
"Cells400" <<
'\t' <<
"Occupied400" << endl;
26 for (
int g = 0; g < 4; g++) {
Landscape * m_TheLandscape
Definition: AOR_Probe.h:15
Population_Manager * m_owner
Definition: AOR_Probe.h:16
int m_gridcountsize[4]
Definition: AOR_Probe.h:11
int m_gridcountwidth[4]
Definition: AOR_Probe.h:9
ofstream m_ProbeFile
Definition: AOR_Probe.h:8
ListOfCells m_gridcount[4]
Definition: AOR_Probe.h:13
int m_gridcountheight[4]
Definition: AOR_Probe.h:10
int m_totalcells[4]
Definition: AOR_Probe.h:12
int SupplySimAreaHeight(void)
Definition: landscape.h:1637
int SupplySimAreaWidth(void)
Definition: landscape.h:1632
void Warn(MapErrorState a_level, std::string a_msg1, std::string a_msg2)
Definition: maperrormsg.cpp:59
class MapErrorMsg * g_msg
This pointer provides access the to the internal ALMaSS error message system.
Definition: maperrormsg.cpp:41
@ WARN_FILE
Definition: maperrormsg.h:37
References g_msg, MapErrorMsg::Warn(), and WARN_FILE.
◆ ~AOR_Probe()
virtual AOR_Probe::~AOR_Probe |
( |
| ) |
|
|
inlinevirtual |
virtual void CloseFile()
Definition: AOR_Probe.h:23
References CloseFile().
◆ CloseFile()
virtual void AOR_Probe::CloseFile |
( |
| ) |
|
|
inlinevirtual |
◆ DoProbe()
void AOR_Probe::DoProbe |
( |
int |
a_lifestage | ) |
|
|
virtual |
Counts all a_lifestage animals in each grid of each size
Reimplemented in AOR_Probe_Goose.
63 for (
int grid = 0; grid < 4; grid++) {
67 for (
unsigned j = 0; j < total; j++)
70 for (
int grid = 0; grid < 4; grid++) {
void WriteData()
Definition: AOR_Probe.cpp:35
A simple class defining an x,y coordinate set.
Definition: ALMaSS_Setup.h:53
int m_y
Definition: ALMaSS_Setup.h:56
int m_x
Definition: ALMaSS_Setup.h:55
TAnimal * SupplyAnimalPtr(int a_index, int a_animal)
Returns the pointer indexed by a_index and a_animal. Note NO RANGE CHECK.
Definition: PopulationManager.h:465
unsigned GetLiveArraySize(int a_listindex)
Gets the number of 'live' objects for a list index in the TheArray.
Definition: PopulationManager.h:433
APoint SupplyPoint()
Definition: PopulationManager.h:209
References APoint::m_x, and APoint::m_y.
Referenced by Bembidion_Population_Manager::TheAOROutputProbe(), THare_Population_Manager::TheAOROutputProbe(), Newt_Population_Manager::TheAOROutputProbe(), Partridge_Population_Manager::TheAOROutputProbe(), Rabbit_Population_Manager::TheAOROutputProbe(), RoeDeer_Population_Manager::TheAOROutputProbe(), Skylark_Population_Manager::TheAOROutputProbe(), and Vole_Population_Manager::TheAOROutputProbe().
◆ WriteData()
void AOR_Probe::WriteData |
( |
| ) |
|
A common output stub for the AOR output probe. Specialist counting for each species occurs as part of the AOR grid probe, then this method deals with the final output.
41 for (
int gsz = 0; gsz < 4; gsz++) {
43 OccupiedCells[gsz] = 0;
48 if (res > 0) OccupiedCells[gsz]++;
53 for (
int c = 0; c < 3; c++) {
int SupplyYearNumber(void)
Definition: landscape.h:1616
int SupplyDayInYear(void)
Definition: landscape.h:1596
Referenced by AOR_Probe_Goose::DoProbe().
◆ m_gridcount
◆ m_gridcountheight
int AOR_Probe::m_gridcountheight[4] |
|
protected |
◆ m_gridcountsize
int AOR_Probe::m_gridcountsize[4] |
|
protected |
◆ m_gridcountwidth
int AOR_Probe::m_gridcountwidth[4] |
|
protected |
◆ m_owner
◆ m_ProbeFile
ofstream AOR_Probe::m_ProbeFile |
|
protected |
◆ m_TheLandscape
◆ m_totalcells
int AOR_Probe::m_totalcells[4] |
|
protected |
The documentation for this class was generated from the following files: